<!--<img src="images/custom_back.png" alt="" width="100%" >-->
<div class="header_box">
    <div class="header_back">
        <div class="header_title hide">
            <span class="header_img return"><img src="images/return.png" alt="" width="25%"></span>
            <span class="header_text">甘孜</span>
            <span class="header_img search hide"><img src="images/search_all.png" alt="" width="40%"></span>
        </div>
        <div class="header_menu" style="top:10px;">
            <ul>
                <li><a href="javascript:;" data-href="local_index.html">首页</a></li>
                <li><a href="javascript:;" data-href="vision_index.html">视觉</a></li>
                <li href="javascript:;" style="width:20%;"><a data-href="audio_visual.html">天籁之音</a></li>
                <li><a href="javascript:;" data-href="custom_index.html">民俗</a></li>
                <li href="javascript:;"><a data-href="board_lodging.html">吃住行</a></li>
                <li><a href="javascript:;" data-href="http://hxbh5.vpclub.cn/hxb/activityLBS/140/2/1/10/14196256/21.html">特色</a></li>
            </ul>
        </div>
    </div>
</div>
<script>
        //alert(baseInfo.pageNumber);
        // 循环遍历导航菜单并给当前的menu加上 .active
        //$(".header_menu ul li").each(function () {
            $(".header_menu ul li").eq(baseInfo.pageNumber).addClass("active");
        //});

        // 返回到上一个页面
        $(".return").click(function () {
            window.location.href = "local_index.html";
        });

        // 跳转到搜索页面
        $(".search").click(function () {
            window.location.href = "search_all.html";
        });

        $(".header_menu").on("click","a",function(){
            var url = $(this).data("href");
            if(url.indexOf("custom") == -1){
                setCookie("last_url",url);
            }
            if(url.indexOf("http") > -1){
                openWebInfoUrl(url);
            }else{
                location.href = url;
            }
        });

        function setCookie(name, value) {
            var Days = 30;
            var exp = new Date();
            exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
            document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
        }
        
</script>